#include <iostream>

using namespace std;

class Draw{
private:
    int hight=3;
public:
    void gethight(int hight){
    this->hight= hight;
    }
    void draw3jiao(){
    for (int i = 1; i <= hight; i++) {
        for (int j = 1; j <=i; j++) {
            cout << "*";
        }
        cout << endl;
    }
    }
    void drawjvxing(){
    for(int i = 1; i <= hight; i++){
        cout<<"*************"<<endl;
    }
    }
    void drawzheng(){
    for (int i = 1; i <= hight; i++) {
        for (int j = 1; j <=hight; j++) {
            cout << "*";
        }
        cout<<endl;
    }
    }
    void drawsibian(){
    for (int i = 1; i <= hight; i++) {
        for (int j = 1; j <=i; j++) {
            cout << " ";
        }
        cout<<"******"<<endl;
    }
    }
};

int main()
{
    Draw paint;
    paint.gethight(5);
    paint.draw3jiao();
    cout<<endl;
    paint.drawjvxing();
    cout<<endl;
    paint.drawzheng();
    cout<<endl;
    paint.drawsibian();
    return 0;
}
